home *** CD-ROM | disk | FTP | other *** search
- ; Shaders Script file
- ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
- ; Author: Honich Andrey
-
- Version (1.00)
-
- //========================================================================
- // ATI R2xx / NVidia NV2X (PS.1.X and above)
-
- // Specular and diffuse bump-mapping with reflection map
- // For high-poly geometry (without normalization cube-maps)
- // One pass for single light source (one pass for each additional LS)
-
- // Supports:
- // 1. Dot3 light maps
- // 2. Simple light maps
- // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
- // 4. Stencil shadows
- // 5. Three types of light sources (Directional, Point/Omni, Projected)
- // 6. Optimised separate techniques for Single/Multiple light sources
- // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
-
- /*Shader 'TemplBumpSpec_HP_EnvCMAmb'
- (
- Params
- (
- Sort = Opaque
- )
- Public
- (
- float 'ReflectAmount' (0.25)
- )
-
- #define $ENVCMAP $CubeMap
- #include "BumpSpecular_HP_EnvCM.csi"
- #undefine $ENVCMAP
- )*/
-
- Shader 'TemplBumpSpec_HP_EnvCMAmb'
- (
- Params
- (
- Sort = Opaque
- )
-
- #define %DIFFUSE 0x1
- #define %SPECULAR 0x2
- #define %DIFFUSEALPHA 0x4000
- #define %ENVCMAMB 0x40
- #define %BUMP_MAP 0x1000
-
- #include "IllumTemplate.csi"
-
- #undefine %BUMP_MAP
- #undefine %ENVCMAMB
- #undefine %DIFFUSEALPHA
- #undefine %SPECULAR
- #undefine %DIFFUSE
- )
-
-